You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > Vector Structure > Vector Operators > == Operator > Vector.== Operator ([In] Vector, [In] Vector)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
Vector.== Operator ([In] Vector, [In] Vector)

Returns true, if Left and Right are of equal Length and Values.

Syntax
C#
Visual Basic
public static bool operator ==([In] Vector Left, [In] Vector Right);
var a,b: Vector; c: TDoubleArray; begin c := TDoubleArray.Create(1,1,1,1,1); TVec(a).CopyFromArray(c); TVec(a).Copy(b); if a = b then ERaise('a and b are equal!'); if a = 1 then ERaise('a equals 1!'); //compare to real value if a = Cplx(1,0) then ERaise('a equals 1!'); //compare to complex value end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!